package database

func GetAllApis() (apis []*Api, err error) {
	err = db.Find(&apis).Error
	return
}

func GetApisByUriParentAndMethod(uriParent int64, method string) (apis []*Api, err error) {
	err = db.Where("uri_pattern = ? AND method = ?", uriParent, method).Find(&apis).Error
	return
}
